True. Most of the samples I post here are lazily stripped down from cross-platform code where the functions have platform-specific names. That is also why my APIModule has a w for Windows.
If you only want to run the sample then you do not need Private, or the alias. You can hard code "NNOTES" instead of using a Const. You can mostly use Sub instead of Function, removing the As Integer. You can also choose to declare arguments in different ways for different purposes -- for example, LMBCS strings.